package Service.Impl;

import java.util.List;

import DAO.Interfaces.*;
import POJO.*;
import Service.Interfaces.IPersonnelService;
import Service.Interfaces.IStoreService;
public class PersonnelServiceImpl implements IPersonnelService{
	IPersonnelDAO PersonnelDAO;
	
	@Override
	public void updatePersonnel(Personnel person) {
		PersonnelDAO.updatePersonnel(person);
	}

	public IPersonnelDAO getPersonnelDAO() {return PersonnelDAO;}
	public void setPersonnelDAO(IPersonnelDAO personnelDAO) {PersonnelDAO = personnelDAO;}

	@Override
	public void deletePersonnel(Personnel staff) {
		PersonnelDAO.deletePersonnel(staff);		
	}
	@Override
	public void insertEmp(Personnel person) {
		PersonnelDAO.persist(person);
	}
}
